import { BrowserRouter } from 'react-router'
// import React from 'react'
import ReactDOM from 'react-dom/client'
// import App from './App'
import './index.css'
import Router from './router'
import BeforeEach from './router/BeforeEach'
import store from './store/store'
import {Provider} from 'react-redux'
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(

  <Provider store={store}>
  <BrowserRouter>
    <BeforeEach>
      <Router />
    </BeforeEach>
  </BrowserRouter>
  </Provider>
)
